package test_package;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by iryna on 3/30/14.
 */
public class NavigationPage {
    private WebDriver driver;
    public NavigationPage(WebDriver driver){
        this.driver = driver;

    }



    public String checkPageText(){

        //return driver.findElement(By.xpath("/html/body/div/div[3]/div/div[2]/div/div/a[2]")).getText();
        return driver.findElement(By.tagName("body")).getText();
    }

}
